home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDUCATE
/
PEDHLP13.ARJ
/
BATCH
< prev
next >
Wrap
Text File
|
1991-06-07
|
2KB
|
47 lines
■ USING PEDRAW IN BATCH MODE
Usually PEDRAW is operated interactively from menus <MENU>. It
is also possible to run PEDRAW in batch mode so that it takes
all its entry from standard input, meaning that input can be
redirected into PEDRAW using DOS commands. The way to start
PEDRAW in batch mode is to give the name of a data file on the
command line e.g.:
PEDRAW EXPED.DAT
The data file must exist and must have the extension .DAT or
.SDF or .PED or .PPD so that PEDRAW knows what format to expect
<DATA>. PEDRAW then moves directly to the "Display pedigree"
option and awaits the input of the ID of an individual whose
descendants are to be displayed <DISPLAY>. However in batch mode
it is possible instead to enter flags at this point <FLAGS>.
PEDRAW carries on reading commands from standard input until
either there is an error, or until the end of the input file is
reached, or until an 'X' is input or until the /M flag is
selected. If the end of file is reached or an 'X' is input the
program exits, otherwise it just reverts back to ordinary menu-
driven operation <MENU>. To use PEDRAW with redirected input one
might run it like so:
PEDRAW EXPED.DAT < INPUT.JF
Here INPUT.JF would contain a list of ID's and flags as follows:
12880
13990
/l-2 /l-3 /f1out.msp /tRelatives of number 14001 /a
14001
x
This would display the descendants of 12880 and 13990, saving
the diagrams to 12880.MSP and 13990.MSP, then would draw a
diagram of all the relatives of 14001 and save it in the file
1OUT.MSP with an appropriate title. The x at the end is not
strictly necessary but marks the end of file and quits PEDRAW.
Note that in batch mode the normal editing keys do not work
(cursor keys, control-left-arrow, etc.).